function uifftview_NewPreviewImage
%UIFFTVIEW_NEWPREVIEWIMAGE Summary of this function goes here
%   Detailed explanation goes here

h = findobj('tag', 'cbShowFFT', 'type', 'uicontrol');
if isempty(h), return; end;
handles= guihandles(h);

IsChecked= get(h, 'value');

if IsChecked
    h = findobj('tag', 'uifftview', 'type', 'image');
    ax= get(h, 'parent');
    delete(h);
    
   uifftview_MakeImROI;
   uifftview_MakeImage( ax );
   cbShowFFTROI_Callback(handles.cbShowFFTROI,[]);
   
end

end